Class DateTimeFormatter

Summary

Fully Qualified Name: Laminas\Filter\DateTimeFormatter
Extends: AbstractFilter

Description

Methods

Name Description Defined By
__construct() Sets filter options DateTimeFormatter
__invoke() Invoke filter as a command AbstractFilter
filter() Filter a datetime string by normalizing it to the filters specified format DateTimeFormatter
getOptions() Retrieve options representing object state AbstractFilter
hasPcreUnicodeSupport() AbstractFilter
setFormat() Set the format string accepted by date() to use when formatting a string DateTimeFormatter
setOptions() AbstractFilter

Method Details

__construct()

Sets filter options

Parameter Name Type Description
$options array|\Traversable

Returns:

__invoke()

Invoke filter as a command

Proxies to {@link filter()}

Parameter Name Type Description
$value mixed

Returns: mixed

filter()

Filter a datetime string by normalizing it to the filters specified format

Parameter Name Type Description
$value \DateTime|string|int

Returns: string

getOptions()

Retrieve options representing object state

Returns: array

hasPcreUnicodeSupport()

Returns: bool

setFormat()

Set the format string accepted by date() to use when formatting a string

Parameter Name Type Description
$format string

Returns: self

setOptions()

Parameter Name Type Description
$options array|\Traversable

Returns: self

Top